<template>
  <div>
    <el-input class="input-kw" placeholder="请输入内容"
      v-model="value" clearable
      @keyup.13.native="sendSearch">
    </el-input>
    <el-button type="text" @click="sendSearch()">
      搜索</el-button>
  </div>
</template>

<script>
import { mapState, mapMutations } from 'vuex';
export default {
  computed: {
    ...mapState([
      'resetParams',
      'platform_app',
    ]),
  },
  watch: {
    resetParams:function(nv,ov){
      console.log(nv,ov);
      this.value = '';
      // this.$store.commit('platform_app/激活平台',{pid:''})
      // this.$store.commit('platform_app/激活应用',{app:{}})
    }
  },
  data() {
    return {
      isDev: process.env.NODE_ENV == 'development',
      value:'',
    }
  },
  methods:{
    sendSearch:function(){

    },
    updata2Store:function(){
      let v = this.$_.cloneDeep(this.value)
      this.$store.commit('postParams/setImcfgKeyValue',{
        key:'searchName',value:v
      })
    },
  }
}
</script>

<style>

</style>